home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-07-20 | 2.3 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: long2fwin.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Jul 20 10:57:43 1993, modified Tue Jul 20 10:57:43 1993, creator 'MPS ', type ASCII, 1572 bytes "long2fwin.c" , at 0x6a4 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 6c 6f 6e 67 32 66 | 77 69 6e 2e 63 00 00 00 |..long2f|win.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 06 24 00 | 00 01 ac a8 71 b8 67 a8 |......$.|....q.g.|
|00000060| 71 b8 67 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |q.g.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b6 96 00 00 |........|........|
|00000080| 2f 2a 0d 0d 09 09 46 20 | 57 20 49 20 4e 20 20 20 |/*....F |W I N |
|00000090| 43 20 4f 20 45 20 52 20 | 43 20 49 20 4f 20 4e 20 |C O E R |C I O N |
|000000a0| 20 20 4f 20 53 20 41 20 | 58 0d 09 09 0d 09 09 56 | O S A |X......V|
|000000b0| 65 72 73 69 6f 6e 20 31 | 2e 30 0d 09 09 46 72 65 |ersion 1|.0...Fre|
|000000c0| 65 77 61 72 65 20 62 79 | 20 44 61 6e 69 65 6c 20 |eware by| Daniel |
|000000d0| 52 61 6e 73 6f 6e 0d 09 | 09 0d 09 09 54 68 69 73 |Ranson..|....This|
|000000e0| 20 6f 73 61 78 20 70 65 | 72 66 6f 72 6d 73 20 63 | osax pe|rforms c|
|000000f0| 6f 65 72 63 69 6f 6e 73 | 20 74 6f 20 74 68 65 20 |oercions| to the |
|00000100| 46 69 6e 64 65 72 57 69 | 6e 64 6f 77 20 28 66 77 |FinderWi|ndow (fw|
|00000110| 69 6e 29 20 72 65 63 6f | 72 64 0d 09 09 74 79 70 |in) reco|rd...typ|
|00000120| 65 20 75 73 65 64 20 62 | 79 20 46 69 6e 64 65 72 |e used b|y Finder|
|00000130| 20 65 76 65 6e 74 73 2e | 0d 09 09 0d 09 09 54 68 | events.|......Th|
|00000140| 65 72 65 20 61 72 65 20 | 61 63 74 75 61 6c 6c 79 |ere are |actually|
|00000150| 20 74 68 72 65 65 20 6f | 73 61 78 2e 20 54 68 69 | three o|sax. Thi|
|00000160| 73 20 6f 6e 65 20 63 6f | 6e 76 65 72 74 73 20 69 |s one co|nverts i|
|00000170| 6e 74 65 67 65 72 73 2c | 20 61 73 20 61 0d 09 09 |ntegers,| as a...|
|00000180| 73 70 65 63 69 61 6c 20 | 77 61 79 20 74 6f 20 72 |special |way to r|
|00000190| 65 66 65 72 20 74 6f 20 | 74 68 65 20 41 62 6f 75 |efer to |the Abou|
|000001a0| 74 20 61 6e 64 20 43 6c | 69 70 62 6f 61 72 64 20 |t and Cl|ipboard |
|000001b0| 77 69 6e 64 6f 77 73 2e | 0d 09 09 54 68 65 20 70 |windows.|...The p|
|000001c0| 6f 73 73 69 62 6c 65 20 | 76 61 6c 75 65 73 20 61 |ossible |values a|
|000001d0| 72 65 20 3a 0d 09 09 09 | 31 20 3a 20 61 62 6f 75 |re :....|1 : abou|
|000001e0| 74 20 77 69 6e 64 6f 77 | 0d 09 09 09 32 20 3a 20 |t window|....2 : |
|000001f0| 63 6c 69 70 62 6f 61 72 | 64 20 77 69 6e 64 6f 77 |clipboar|d window|
|00000200| 0d 0d 2a 2f 0d 0d 23 69 | 6e 63 6c 75 64 65 20 3c |..*/..#i|nclude <|
|00000210| 54 79 70 65 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Types.h>|.#includ|
|00000220| 65 20 3c 4d 65 6d 6f 72 | 79 2e 68 3e 0d 23 69 6e |e <Memor|y.h>.#in|
|00000230| 63 6c 75 64 65 20 3c 41 | 6c 69 61 73 65 73 2e 68 |clude <A|liases.h|
|00000240| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 41 70 70 6c |>.#inclu|de <Appl|
|00000250| 65 45 76 65 6e 74 73 2e | 68 3e 0d 23 69 6e 63 6c |eEvents.|h>.#incl|
|00000260| 75 64 65 20 3c 41 45 52 | 65 67 69 73 74 72 79 2e |ude <AER|egistry.|
|00000270| 68 3e 0d 0d 73 74 72 75 | 63 74 20 46 69 6e 64 65 |h>..stru|ct Finde|
|00000280| 72 57 69 6e 64 6f 77 7b | 0d 09 6c 6f 6e 67 09 09 |rWindow{|..long..|
|00000290| 77 69 6e 64 6f 77 54 79 | 70 65 3b 0d 09 44 65 73 |windowTy|pe;..Des|
|000002a0| 63 54 79 70 65 09 61 6c | 69 61 73 54 79 70 65 3b |cType.al|iasType;|
|000002b0| 0d 09 6c 6f 6e 67 09 09 | 61 6c 69 61 73 4c 65 6e |..long..|aliasLen|
|000002c0| 67 74 68 3b 0d 09 41 6c | 69 61 73 52 65 63 6f 72 |gth;..Al|iasRecor|
|000002d0| 64 09 61 6c 69 61 73 3b | 0d 7d 3b 0d 0d 74 79 70 |d.alias;|.};..typ|
|000002e0| 65 64 65 66 20 73 74 72 | 75 63 74 20 46 69 6e 64 |edef str|uct Find|
|000002f0| 65 72 57 69 6e 64 6f 77 | 20 46 69 6e 64 65 72 57 |erWindow| FinderW|
|00000300| 69 6e 64 6f 77 3b 0d 0d | 70 61 73 63 61 6c 20 4f |indow;..|pascal O|
|00000310| 53 45 72 72 20 4c 4f 4e | 47 32 46 57 49 4e 28 09 |SErr LON|G2FWIN(.|
|00000320| 44 65 73 63 54 79 70 65 | 09 66 72 6f 6d 54 79 70 |DescType|.fromTyp|
|00000330| 65 2c 0d 09 09 09 09 09 | 09 50 74 72 09 09 09 64 |e,......|.Ptr...d|
|00000340| 61 74 61 50 74 72 2c 0d | 09 09 09 09 09 09 53 69 |ataPtr,.|......Si|
|00000350| 7a 65 09 09 64 61 74 61 | 53 69 7a 65 2c 0d 09 09 |ze..data|Size,...|
|00000360| 09 09 09 09 44 65 73 63 | 54 79 70 65 09 74 6f 54 |....Desc|Type.toT|
|00000370| 79 70 65 2c 0d 09 09 09 | 09 09 09 6c 6f 6e 67 09 |ype,....|...long.|
|00000380| 09 72 65 66 43 6f 6e 2c | 0d 09 09 09 09 09 09 41 |.refCon,|.......A|
|00000390| 45 44 65 73 63 09 09 2a | 72 65 73 75 6c 74 29 0d |EDesc..*|result).|
|000003a0| 7b 0d 23 70 72 61 67 6d | 61 20 75 6e 75 73 65 64 |{.#pragm|a unused|
|000003b0| 28 66 72 6f 6d 54 79 70 | 65 2c 20 64 61 74 61 53 |(fromTyp|e, dataS|
|000003c0| 69 7a 65 2c 20 74 6f 54 | 79 70 65 2c 20 72 65 66 |ize, toT|ype, ref|
|000003d0| 43 6f 6e 29 0d 0d 09 46 | 69 6e 64 65 72 57 69 6e |Con)...F|inderWin|
|000003e0| 64 6f 77 09 2a 2a 68 46 | 77 69 6e 3b 0d 09 53 69 |dow.**hF|win;..Si|
|000003f0| 7a 65 09 09 09 73 69 7a | 48 3b 0d 09 6c 6f 6e 67 |ze...siz|H;..long|
|00000400| 09 09 09 76 61 6c 3b 0d | 09 4f 53 45 72 72 09 09 |...val;.|.OSErr..|
|00000410| 09 65 72 72 3b 0d 09 0d | 09 2f 2a 20 47 65 74 20 |.err;...|./* Get |
|00000420| 74 68 65 20 69 6e 74 65 | 67 65 72 20 76 61 6c 75 |the inte|ger valu|
|00000430| 65 20 2a 2f 0d 09 76 61 | 6c 20 3d 20 2a 28 6c 6f |e */..va|l = *(lo|
|00000440| 6e 67 2a 29 64 61 74 61 | 50 74 72 3b 0d 09 69 66 |ng*)data|Ptr;..if|
|00000450| 20 28 76 61 6c 20 3d 3d | 20 31 29 0d 09 09 76 61 | (val ==| 1)...va|
|00000460| 6c 20 3d 20 27 61 62 6f | 74 27 3b 0d 09 65 6c 73 |l = 'abo|t';..els|
|00000470| 65 20 69 66 20 28 76 61 | 6c 20 3d 3d 20 32 29 0d |e if (va|l == 2).|
|00000480| 09 09 76 61 6c 20 3d 20 | 27 63 6c 69 70 27 3b 0d |..val = |'clip';.|
|00000490| 09 65 6c 73 65 0d 09 09 | 72 65 74 75 72 6e 20 65 |.else...|return e|
|000004a0| 72 72 41 45 43 6f 65 72 | 63 69 6f 6e 46 61 69 6c |rrAECoer|cionFail|
|000004b0| 3b 0d 09 0d 09 2f 2a 20 | 41 6c 6c 6f 63 61 74 65 |;..../* |Allocate|
|000004c0| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 20 2a | the str|ucture *|
|000004d0| 2f 0d 09 73 69 7a 48 20 | 3d 20 31 36 3b 0d 09 68 |/..sizH |= 16;..h|
|000004e0| 46 77 69 6e 20 3d 20 28 | 46 69 6e 64 65 72 57 69 |Fwin = (|FinderWi|
|000004f0| 6e 64 6f 77 2a 2a 29 4e | 65 77 48 61 6e 64 6c 65 |ndow**)N|ewHandle|
|00000500| 28 73 69 7a 48 29 3b 0d | 09 69 66 20 28 68 46 77 |(sizH);.|.if (hFw|
|00000510| 69 6e 20 3d 3d 20 30 29 | 20 72 65 74 75 72 6e 20 |in == 0)| return |
|00000520| 65 72 72 41 45 43 6f 65 | 72 63 69 6f 6e 46 61 69 |errAECoe|rcionFai|
|00000530| 6c 3b 0d 09 0d 09 2f 2a | 20 46 69 6c 6c 20 69 6e |l;..../*| Fill in|
|00000540| 20 66 69 65 6c 64 73 20 | 2a 2f 0d 09 28 2a 2a 68 | fields |*/..(**h|
|00000550| 46 77 69 6e 29 2e 77 69 | 6e 64 6f 77 54 79 70 65 |Fwin).wi|ndowType|
|00000560| 20 3d 20 30 3b 0d 09 28 | 2a 2a 68 46 77 69 6e 29 | = 0;..(|**hFwin)|
|00000570| 2e 61 6c 69 61 73 54 79 | 70 65 20 3d 20 27 66 69 |.aliasTy|pe = 'fi|
|00000580| 6e 64 27 3b 0d 09 28 2a | 2a 68 46 77 69 6e 29 2e |nd';..(*|*hFwin).|
|00000590| 61 6c 69 61 73 4c 65 6e | 67 74 68 20 3d 20 34 3b |aliasLen|gth = 4;|
|000005a0| 0d 09 42 6c 6f 63 6b 4d | 6f 76 65 28 28 50 74 72 |..BlockM|ove((Ptr|
|000005b0| 29 28 26 76 61 6c 29 2c | 20 26 28 28 2a 2a 68 46 |)(&val),| &((**hF|
|000005c0| 77 69 6e 29 2e 61 6c 69 | 61 73 29 2c 20 34 29 3b |win).ali|as), 4);|
|000005d0| 0d 09 0d 09 2f 2a 20 43 | 72 65 61 74 65 20 74 68 |..../* C|reate th|
|000005e0| 65 20 64 65 73 63 72 69 | 70 74 6f 72 20 2a 2f 0d |e descri|ptor */.|
|000005f0| 09 4d 6f 76 65 48 48 69 | 28 28 48 61 6e 64 6c 65 |.MoveHHi|((Handle|
|00000600| 29 68 46 77 69 6e 29 3b | 0d 09 48 4c 6f 63 6b 28 |)hFwin);|..HLock(|
|00000610| 28 48 61 6e 64 6c 65 29 | 68 46 77 69 6e 29 3b 0d |(Handle)|hFwin);.|
|00000620| 09 65 72 72 20 3d 20 41 | 45 43 72 65 61 74 65 44 |.err = A|ECreateD|
|00000630| 65 73 63 28 74 79 70 65 | 46 69 6e 64 65 72 57 69 |esc(type|FinderWi|
|00000640| 6e 64 6f 77 2c 20 28 50 | 74 72 29 28 2a 68 46 77 |ndow, (P|tr)(*hFw|
|00000650| 69 6e 29 2c 20 73 69 7a | 48 2c 20 72 65 73 75 6c |in), siz|H, resul|
|00000660| 74 29 3b 0d 09 0d 09 2f | 2a 20 43 6c 65 61 6e 20 |t);..../|* Clean |
|00000670| 75 70 20 2a 2f 0d 09 44 | 69 73 70 6f 73 65 48 61 |up */..D|isposeHa|
|00000680| 6e 64 6c 65 28 28 48 61 | 6e 64 6c 65 29 68 46 77 |ndle((Ha|ndle)hFw|
|00000690| 69 6e 29 3b 0d 09 72 65 | 74 75 72 6e 20 65 72 72 |in);..re|turn err|
|000006a0| 3b 0d 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000710| 00 14 67 0a 0c 46 fe 62 | 67 04 70 00 60 02 70 01 |..g..F.b|g.p.`.p.|
|00000720| 4c ee 18 e8 fb e2 4e 5e | 4e 75 00 00 01 31 00 00 |L.....N^|Nu...1..|
|00000730| 0b 6c 6f 6e 67 32 66 77 | 69 6e 2e 63 02 00 00 00 |.long2fw|in.c....|
|00000740| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00000750| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 a9 81 3e 8a 00 00 | 00 00 00 00 01 ac 00 1e |....>...|........|
|00000780| 66 00 01 fe 20 2c 00 24 | 04 80 66 73 6d 6e 67 00 |f... ,.$|..fsmng.|
|00000790| 01 88 04 80 08 00 07 02 | 67 00 01 14 04 80 06 f3 |........|g.......|
|000007a0| ee 04 67 0e 04 80 00 00 | 00 f2 67 00 00 96 60 00 |..g.....|..g...`.|
|000007b0| 01 d0 20 2c 00 20 04 80 | 47 52 46 4c 67 12 04 80 |.. ,. ..|GRFLg...|
|000007c0| 05 f3 00 00 67 0a 04 80 | 08 0e 00 00 66 00 01 b2 |....g...|....f...|
|000007d0| 2f 2c 00 12 70 64 2f 00 | 4e ad 07 8a 26 40 20 0b |/,..pd/.|N...&@ .|
|000007e0| 50 8f 67 34 20 0b 67 2a | 20 0b 67 1a 20 0b 67 0a |P.g4 .g*| .g. .g.|
|000007f0| 20 53 20 2d ff 36 20 80 | 60 02 70 00 20 53 20 2d | S -.6 .|`.p. S -|
|00000800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 73 63 09 |...H..Mo|naco.sc.|
|00000810| 09 66 72 6f 6d 44 65 73 | 63 2c 0d 09 09 09 09 09 |.fromDes|c,......|
|00000820| 09 09 44 65 73 63 00 06 | 00 04 00 2a 00 24 02 f1 |..Desc..|...*.$..|
|00000830| 02 20 00 3c 00 24 01 8d | 02 3d a8 71 72 17 00 00 |. .<.$..|.=.qr...|
|00000840| 00 30 00 00 00 30 00 00 | 00 00 01 00 00 00 00 1e |.0...0..|........|
|00000850| 00 2a 00 24 02 f1 02 20 | 00 3c 00 24 01 8d 02 3d |.*.$... |.<.$...=|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 e6 |.....n..|.n...>..|
|00000880| bb f8 1b ea 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000890| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 03 f0 ff ff 00 00 00 4c | 00 e9 16 48 00 00 00 00 |.......L|...H....|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+